package ch5;

public class Zxf17 {
    public static void main(String[] args) {
        int a=1;
        int b=0;
        while (a<=1000) {
            if (a / 10 % 10 == 3 && a % 7 == 0 && a % 11 == 0) {
                b =b+ a;
            }a++;
        }System.out.println("总和"+b);
    }
}
